package com.sdonkey.score.bean;

import com.alibaba.fastjson.JSONObject;

import java.util.Arrays;

/**
 * Created by hujun on 2018\12\29 0029.
 */
public class AddAdPlaceCondition {
    private Integer id;
    private String adId;
    private Integer trueAdId;
    private String sex;
    private String maritalStatus;
    private String children;
    private String house;
    private String car;
    private String[] birth;
    private String[] monthlyIncome;
    private String[] education;
    private String status;
    private Integer userId;

    public String[] getEducation() {
        return education;
    }

    public void setEducation(String[] education) {
        this.education = education;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAdId() {
        return adId;
    }

    public void setAdId(String adId) {
        this.adId = adId;
    }

    public Integer getTrueAdId() {
        return trueAdId;
    }

    public void setTrueAdId(Integer trueAdId) {
        this.trueAdId = trueAdId;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getMaritalStatus() {
        return maritalStatus;
    }

    public void setMaritalStatus(String maritalStatus) {
        this.maritalStatus = maritalStatus;
    }

    public String getChildren() {
        return children;
    }

    public void setChildren(String children) {
        this.children = children;
    }

    public String getHouse() {
        return house;
    }

    public void setHouse(String house) {
        this.house = house;
    }

    public String getCar() {
        return car;
    }

    public void setCar(String car) {
        this.car = car;
    }

    public String[] getBirth() {
        return birth;
    }

    public void setBirth(String[] birth) {
        this.birth = birth;
    }

    public String[] getMonthlyIncome() {
        return monthlyIncome;
    }

    public void setMonthlyIncome(String[] monthlyIncome) {
        this.monthlyIncome = monthlyIncome;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
//    public JSONObject check() {
//        JSONObject error = new JSONObject();
//        if (id == null) {
//            if (adId == null || userId == null) {
//                error.put("code", "ERROR_PARAM");
//                error.put("msg", "参数错误");
//            }
//        }
//
//        return null;
//
//    }


    @Override
    public String toString() {
        return "AddAdPlaceCondition{" +
                "id=" + id +
                ", adId='" + adId + '\'' +
                ", trueAdId=" + trueAdId +
                ", sex='" + sex + '\'' +
                ", maritalStatus='" + maritalStatus + '\'' +
                ", children='" + children + '\'' +
                ", house='" + house + '\'' +
                ", car='" + car + '\'' +
                ", birth=" + Arrays.toString(birth) +
                ", monthlyIncome=" + Arrays.toString(monthlyIncome) +
                ", education=" + Arrays.toString(education) +
                ", status='" + status + '\'' +
                ", userId=" + userId +
                '}';
    }
}
